﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Create.Master" Inherits="System.Web.Mvc.ViewPage<Langben.DAL.Book>" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CurentPlace" runat="server">
    创建预订
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <input class="a2 f2" type="submit" value="创建" />
            <input class="a2 f2" type="button" onclick="BackList('Book')" value="返回" />
        </legend>
        <div class="bigdiv">

            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('BuyerId','../../Buyer');">
                    <%: Html.LabelFor(model => model.BuyerId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkBuyerId">
                </div>
                <%: Html.HiddenFor(model => model.BuyerId)%>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showChooseModal('CemeteryId','CemeteryName','../../Cemetery/Choose');">
                    <%: Html.LabelFor(model => model.CemeteryName) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkCemeteryId">
                </div>
                <%: Html.HiddenFor(model => model.CemeteryName)%>
            </div>
            <div class="editor-label" style="display: none">
                <%: Html.LabelFor(model => model.CemeteryId) %>：
            </div>
            <div class="editor-field" style="display: none">
                <%: Html.EditorFor(model => model.CemeteryId) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryId) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CemeteryNo) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.CemeteryNo) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryNo) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CemeteryShape) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.CemeteryShape) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryShape) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BuriedType) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.BuriedType) %>
                <%: Html.ValidationMessageFor(model => model.BuriedType) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CemeteryPrice) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.CemeteryPrice) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryPrice) %>
            </div>
            <%--<div class="editor-label">
                <a class="anUnderLine" onclick="showModalMany('BuriedPeopleRowGuid','../../BuriedPeople');">
                    <%: Html.LabelFor(model => model.BuriedPeopleRowGuid) %>
                </a>：
            </div>--%>
            <%--<div class="editor-field">
                <div id="checkBuriedPeopleRowGuid">
                    <% 
                        if (Model != null && !string.IsNullOrWhiteSpace(Model.BuriedPeopleRowGuid))
                        {
                            foreach (var item17 in Model.BuriedPeopleRowGuid.Split('^'))
                            {
                                string[] it = item17.Split('&');
                                if (it != null && it.Length == 2 && !string.IsNullOrWhiteSpace(it[0]) && !string.IsNullOrWhiteSpace(it[1]))
                                {                        
                    %>
                    <table id="<%: item17 %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: item17  %>','BuriedPeopleRowGuid');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: it[1] %>
                            </td>
                        </tr>
                    </table>
                    <%}
                            }
                        }%>
                    <%: Html.HiddenFor(model => model.BuriedPeopleRowGuid) %>
                </div>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('ApplicantsId','../../Applicants');">
                    <%: Html.LabelFor(model => model.ApplicantsId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkApplicantsId">
                </div>
                <%: Html.HiddenFor(model => model.ApplicantsId)%>
            </div>--%>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BookPrice) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.BookPrice) %>
                <%: Html.ValidationMessageFor(model => model.BookPrice) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BookDataCount) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.BookDataCount, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                <%: Html.ValidationMessageFor(model => model.BookDataCount) %>
            </div>



            <br />
            <div class="easyui-tabs" style="width: 800px;">
                <div title="添加碑文销售信息" style="padding: 10px">
                    <table style="width: 100%;" cellspacing="10px">
                        <tr>
                            <td class="tdlbl">
                                <a class="anUnderLine" onclick="showModalMany('BuriedPeopleRowGuid','../../BuriedPeople');">
                                    <%: Html.LabelFor(model => model.BuriedPeopleRowGuid) %>
                                </a>：
                            </td>
                            <td class="tdedit">
                                <div id="checkBuriedPeopleRowGuid">
                                    <% 
                                        if (Model != null && !string.IsNullOrWhiteSpace(Model.BuriedPeopleRowGuid))
                                        {
                                            foreach (var item17 in Model.BuriedPeopleRowGuid.Split('^'))
                                            {
                                                string[] it = item17.Split('&');
                                                if (it != null && it.Length == 2 && !string.IsNullOrWhiteSpace(it[0]) && !string.IsNullOrWhiteSpace(it[1]))
                                                {                        
                                    %>
                                    <table id="<%: item17 %>"
                                        class="deleteStyle">
                                        <tr>
                                            <td>
                                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: item17  %>','BuriedPeopleRowGuid');" src="../../../Images/deleteimge.png" />
                                            </td>
                                            <td>
                                                <%: it[1] %>
                                            </td>
                                        </tr>
                                    </table>
                                    <%}
                                            }
                                        }%>
                                    <%: Html.HiddenFor(model => model.BuriedPeopleRowGuid) %>
                                </div>
                            </td>
                            <td class="tdlbl">
                                <a class="anUnderLine" onclick="showModalOnly('ApplicantsId','../../Applicants');">
                                    <%: Html.LabelFor(model => model.ApplicantsId) %>
                                </a>：
                            </td>
                            <td class="tdedit">
                                <div id="checkApplicantsId">
                                </div>
                                <%: Html.HiddenFor(model => model.ApplicantsId)%></td>
                        </tr>
                        <tr>
                            <td class="tdlbl">
                                <%: Html.LabelFor(model => model.BookPrice) %>：
                            </td>
                            <td class="tdedit">
                                <%: Html.EditorFor(model => model.BookPrice) %>
                                <%: Html.ValidationMessageFor(model => model.BookPrice) %>
                            </td>
                            <td class="tdlbl">
                                <%: Html.LabelFor(model => model.BookDataCount) %>：
                            </td>
                            <td class="tdedit">
                                <%: Html.TextBoxFor(model => model.BookDataCount, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                                <%: Html.ValidationMessageFor(model => model.BookDataCount) %>
                            </td>
                        </tr>
                      <%--  <tr>



                            <td colspan="4">
                                <%: Html.LabelFor(model => model.Prompt) %>：
                                <%: Html.TextAreaFor(model => model.Prompt) %>
                                <%: Html.ValidationMessageFor(model => model.Prompt) %>
                            </td>

                        </tr>
                        <tr>
                            <td colspan="4">
                                <%: Html.LabelFor(model => model.Remark) %>：
                            
                           
                                <%: Html.TextAreaFor(model => model.Remark) %>
                                <%: Html.ValidationMessageFor(model => model.Remark) %>
                            </td>



                        </tr>--%>
                    </table>
                </div>
                <div title="添加碑文销售信息" style="padding: 10px">
                    1
                </div>
                <div title="添加配套商品销售信息" style="padding: 10px">
                    2
                </div>

            </div>
            <br />

        </div>

    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <script type="text/javascript">

        $(function () {


        });


    </script>
    <style>
        .tdlbl {
            width: 25%;
            text-align: right;
        }

        .tdedit {
            width: 25%;
        }
    </style>
</asp:Content>

